<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="laundryPayment.title"/></title>
    <meta name="heading" content="<fmt:message key='laundryAsignNewPeriod.heading'/>"/>
    <meta name="menu" content="RoleAdminLaundry"/>

     <script type="text/javascript" src="<c:url value='/scripts/calendar/calendar.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/lang/calendar-es.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/calendar-setup.js'/>"></script>

    <script type="text/javascript">
        window.onload = function() {
            Calendar.setup({
                inputField: "periodPaymentLaundry.initDate",
                ifFormat: "%d/%m/%Y",
                button: "periodPaymentLaundry.initDate"
            });
        }
    </script>

</head>
<fieldset>
        <legend><fmt:message key="currentLaundry.currentLaundry"/></legend>
        <table class="tableGrey" id="currentCut" >
        <thead>
            <tr>
                <th class="hidden"/>
                <th><fmt:message key="laundry.name"/></th>
                <th><fmt:message key="laundry.address"/></th>
                <th class="hidden"/>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><s:property id="laundry.name" value="laundry.name"/></td>
                <td><s:property id="laundry.address" value="laundry.address"/></td>
            </tr>
        </tbody>
        </table>
 </fieldset>

<s:form id="asignNewPeriodLaundryForm" action="asignNewPeriodLaundry" method="post" validate="true">
<fieldset>
    <legend><fmt:message key="currentLaundry.datasNewPeriod"/></legend>
        <table>
        <tr>
            <td><s:textfield key="periodPaymentLaundry.initDate" id="periodPaymentLaundry.initDate" required="true" cssClass="text medium"/></td>
            <td><s:textfield key="periodPaymentLaundry.initAmount" id="periodPaymentLaundry.initAmount" required="true" cssClass="text medium"/></td>
         </tr>
        <tr>
            <td><s:submit cssClass="button" method="saveNewperiodPaymentLaundry" key="button.save" theme="simple"/></td>
            <td><input type="button" style="margin-right: 5px"
                       onclick="location.href='<c:url value="/cancelNewperiodPaymentLaundry.html"/>'"
                       value="<fmt:message key="button.cancel"/>"/>
           </td>
        </tr>
        </table>
</fieldset>
</s:form>